HAL RAMECC monitoring operation functions migration

This section provides information about the HAL RAMECC monitoring operation functions migration.

HAL RAMECC start monitor

HAL1

HAL2

HAL_RAMECC_StartMonitor(RAMECC_HandleTypeDef *hramecc)
HAL_RAMECC_EnableMonitor(hal_ramecc_monitor_t instance)

HAL RAMECC stop monitor

HAL1

HAL2

HAL_RAMECC_StopMonitor(RAMECC_HandleTypeDef *hramecc)
HAL_RAMECC_DisableMonitor(hal_ramecc_monitor_t instance)

HAL RAMECC enable notification

HAL1

HAL2

HAL_RAMECC_EnableNotification(RAMECC_HandleTypeDef *hramecc,
                              uint32_t Notifications)
HAL_RAMECC_EnableController_IT(hal_ramecc_controller_t instance, uint32_t interrupt)
HAL_RAMECC_EnableMonitor_IT(hal_ramecc_monitor_t instance, uint32_t interrupt)

HAL RAMECC disable notification

HAL1

HAL2

HAL_RAMECC_DisableNotification(RAMECC_HandleTypeDef *hramecc,
                               uint32_t Notifications)
HAL_RAMECC_DisableController(hal_ramecc_controller_t instance)
HAL_RAMECC_DisableMonitor(hal_ramecc_monitor_t instance)

HAL RAMECC get info

HAL1

HAL2

HAL_RAMECC_GetFailingAddress(const RAMECC_HandleTypeDef *hramecc)
HAL_RAMECC_GetFailingDataLow(const RAMECC_HandleTypeDef *hramecc)
HAL_RAMECC_GetFailingDataHigh(const RAMECC_HandleTypeDef *hramecc)
HAL_RAMECC_GetHammingErrorCode(const RAMECC_HandleTypeDef *hramecc)
void HAL_RAMECC_GetInfo(hal_ramecc_monitor_t instance, hal_ramecc_ecc_info_t *p_info)

HAL RAMECC single error detected

HAL1

HAL2

HAL_RAMECC_IsECCSingleErrorDetected(const RAMECC_HandleTypeDef *hramecc)

HAL_RAMECC_IsECCSingleErrorDetected() is handled automatically within the function HAL_RAMECC_GetInfo(). Check the error type, which can be:

  • HAL_RAMECC_ECC_NONE

  • HAL_RAMECC_ECC_SINGLE

  • HAL_RAMECC_ECC_DOUBLE

  • HAL_RAMECC_ECC_DOUBLE_BYTE_WRITE

If needed, user can handle it manually with the LL function instead:

__STATIC_INLINE uint32_t LL_RAMECC_IsActiveFlag_SE(const RAMECC_Monitor_TypeDef *p_ramecc)


HAL RAMECC double error detected

HAL1

HAL2

HAL_RAMECC_IsECCDoubleErrorDetected(const RAMECC_HandleTypeDef *hramecc)

HAL_RAMECC_IsECCDoubleErrorDetected() is handled automatically within the function HAL_RAMECC_GetInfo(). Check the error type, which can be:

  • HAL_RAMECC_ECC_NONE

  • HAL_RAMECC_ECC_SINGLE

  • HAL_RAMECC_ECC_DOUBLE

If needed, user can handle it manually with the LL function:

__STATIC_INLINE uint32_t LL_RAMECC_IsActiveFlag_DE(const RAMECC_Monitor_TypeDef *p_ramecc) instead.